import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import Avatar from './components/avatar'
import tim from './tim-init'
import TIM from 'tim-js-sdk'
import { Row, Col, Button, Input, Loading, Dialog, Dropdown, DropdownMenu, DropdownItem } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import './assets/icon/iconfont.css'
import './assets/icon/tim.css'

Vue.prototype.$tim = tim
Vue.prototype.$types = TIM.TYPES
Vue.prototype.$bus = new Vue()
/**
 * 注册组件
 */
Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Input)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.component('Avatar', Avatar)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
